<?php

namespace app\api\validate;


class Schedulingdetail extends BaseValidate
{
    protected $rule = [
        'pid' => 'require|isNotEmpty|isPositiveInteger',//父行程id
        'id' => 'isPositiveInteger',//
        'name' => 'require|isNotEmpty',//行程名称
        'stay' => 'require|isNotEmpty',//住宿
        'transport' => 'require|isNotEmpty', //交通工具
        'scheduling' => 'require|isNotEmpty', //行程安排
        'start_time' => 'require|isNotEmpty|date', //开始时间
        'end_time' => 'require|isNotEmpty|date', //结束时间
    ];

    protected $message = [
        'pid.require' => '所属行程不能为空',
        'name.require' => '行程名称不能为空',
        'start_time.require' => '日期不能为空',
        'start_time.date' => '日期输入有误',
        'stay.require' => '住宿不能为空',
        'transport.require' => '交通工具不能为空',
        'scheduling.require' => '行程安排不能为空',
    ];
}
